from map import Map


class Room:
	def __init__(self):
		self.map = Map('room')
		self.map.initializeMap(0)

	def getPercepts(self):
		currX = self.map.robotX;
		currY = self.map.robotY;
		dx, dy= self.map.getDirArrayBasedOnOrientation()
		percepts = [];
		percept = self.map.getPercept(currX,currY)
		percepts.append(percept);
		for index in range(4):
			percept = self.map.getPercept(currX+dx[index],currY+dy[index]);
			percepts.append(percept);
		return percepts;

	def updateRobotLocation(self,x, y,o):
		self.map.robotX = x
		self.map.robotY = y
		self.map.robotO = o